package cn.bytepulse.web.video.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 视频分集信息
 *
 * @author jiejiebiezheyang
 * @since 2025-03-21 11:00
 */
@Data
@TableName(value = "video_parts")
public class VideoParts {
    /**
     * 分集id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 绑定视频id
     */
    @TableField(value = "video_id")
    private Integer videoId;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 分集排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 视频时长
     */
    @TableField(value = "duration")
    private Double duration;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
}